package com.lcj.dr.controller;

import com.lcj.dr.controller.form.DriverWalletInfoForm;
import com.lcj.dr.service.WalletService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/wallet")
@Tag(name = "WalletController", description = "司机钱包Web接口")
public class WalletController {

    @Resource
    WalletService walletService;

    @PostMapping("/searchInfo")
    @Operation(summary = "查询司机钱包信息")
    public Map searchInfo(@RequestBody DriverWalletInfoForm form) {
        Map<String, Object> map = walletService.searchInfo(form);
        return map;
    }
}
